﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Threading;

namespace PicturePage
{
    public partial class StartScreen : Form
    {
        public StartScreen()
        {
            InitializeComponent();
        }

        private void btnPicturePage_Click(object sender, EventArgs e)
        {
            Thread thread = new Thread(new ThreadStart(runPicturePage));
            thread.SetApartmentState(ApartmentState.STA);
            thread.Start();

            this.Close();
        }

        //run the accounting conversion form, eating the return value so we can multi-thread it
        private void runPicturePage()
        {
            PicturePage picturePage = new PicturePage();
            picturePage.ShowDialog();
        }

        private void btnEditPage_Click(object sender, EventArgs e)
        {
            Thread thread = new Thread(new ThreadStart(runEditPage));
            thread.SetApartmentState(ApartmentState.STA);
            thread.Start();

            this.Close();
        }

        //run the accounting conversion form, eating the return value so we can multi-thread it
        private void runEditPage()
        {
            EditPage editPage = new EditPage();
            editPage.ShowDialog();
        }
    }
}
